package com.woorigil.social.domain.point;

import com.woorigil.social.domain.deal.Deal;

public class PopularRating {
	public int compute(Deal beforeDeal, Deal newDeal) {
		int saleCount = newDeal.getNowCount() - beforeDeal.getNowCount();
		return saleCount * newDeal.getSalesPrice();
	}
}
